package com.example.edu.Mapper;

import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface Chat_FilesMapper {
    void addUrls(@Param("history_id") int history_id, @Param("chat_id") int chat_id, @Param("urls") List<String> urls);

    @Select("select url from chat_files where chat_id = #{chat_id}")
    List<String> getUrls(@Param("chat_id") int chat_id);

    @Delete("delete from chat_files where history_id = #{history_id}")
    void deleteUrls(@Param("history_id") int history_id);
}
